package org.example.n2n;

import java.util.HashSet;
import java.util.Set;

/**
 * @author zhaokuii11@163.com
 * @create 2021-12-06 16:55
 * @Description
 */
public class Item {
    private Integer id;
    private String name;
    private Set<Category> categories = new HashSet<>();

    public Item(Integer id, String name, Set<Category> categories) {
        this.id = id;
        this.name = name;
        this.categories = categories;
    }

    public Set<Category> getCategories() {
        return categories;
    }

    public void setCategories(Set<Category> categories) {
        this.categories = categories;
    }

    public Item() {
    }

    public Item(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
